package com.hxl.tech.gateway.auth.dto.limitrule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 限流配置 DTO 
 * @author soliddq
 * @date 2023-10-16
 */
@Data
public class LimitRuleDTO {

    @ApiModelProperty(value = "规则ID")
    private String ruleId;

    @ApiModelProperty(value = "名称")
    private String ruleName;

    @ApiModelProperty(value = "描述")
    private String ruleDesc;

    @ApiModelProperty(value = "应用ID")
    private String appId;

    @ApiModelProperty(value = "商户号")
    private String merchantCode;

    @ApiModelProperty(value = "开放接口名称")
    private String apiName;

    @ApiModelProperty(value = "限制请求次数")
    private Integer limitCount;

    @ApiModelProperty(value = "限制时间单位")
    private String limitTimeUnit;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
